Repository navigation
A trigonometric of a logarithm of an imaginary power is written in a named constant times a power - #1867
Merged
Rafael-SOWNet merged 3 commits intoOct 13, 2026
Conversation
…named constant times a power Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Rafael-SOWNet
deleted the
a-trigonometric-of-a-logarithm-of-an-imaginary-power
branch
October 13, 2026 06:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #718.
sec(a + 2 ln(c x^(i/2)))^3was declined, along withx sec(a + 2 ln(c x^i))^3and the cosecant's (Rubi's 4.7.5). The rule that writes a trigonometric function ofa + b ln(u)as exponentials only fired whenbitself was imaginary. Herebis 2, and the imaginary factor is the power of the variable inside the logarithm.What the rule needs is for
e^(i L)to be a constant times a power of the variable. That holds wheneverb x u'/uis an imaginary constant, which forua product of constants and powers ofxisbtimes the sum of those powers. The condition now reads that sum off the factors.Asked as it stands, the rewritten integrand gets right answers of over 6,000 characters, because
c^(2 i)andc^(-2 i)(ore^(i a)ande^(-i a)) never cancel, so the answer is a piecewise on combinations of them. Instead,e^(i L)is written asK x^p, withK = e^(i L) x^(-p)named as one symbol. The integrand is then rational inx, andKis substituted back afterwards.Kis constant wherever it is defined, for either sign ofc, so the answer is an antiderivative there. Where the named answer puts a condition onK, astan(a + i ln x)'s does onK^4 > 0, the condition has no value onceKis written back. In that case the exponentials are asked unnamed, as before.Sizes, measured on master a29f7ec, on 2.5.0 and on this branch:
sec(a + 2*ln(c*x^(1/2*i)))^3csc(a + 2*ln(c*x^(1/2*i)))^3x*sec(a + 2*ln(c*x^i))^3x*csc(a + 2*ln(c*x^i))^3sec(a + 2*ln(c/x^(1/2*i)))^3csc(a + 2*ln(c/x^(1/2*i)))^3K)sec(a + i*ln(x))^3Ktan(a + i*ln(x))Each was checked exactly, derivative against integrand at 50, 300 and 2,000 digits, for
c = 2andc = -2. All agree at every precision except one:sec(a + 2*ln(c/x^(1/2*i)))^3atc = -2is right at 300 and 2,000 digits but not at 50. There the integrand is about1e-8, becauselnof a negativecaddsi pi, which the factor2 iturns intoe^(-2 pi). The answer's terms cancel to that, so the result is ill-conditioned rather than wrong.The tests differentiate each one back at
c = 1.3andc = -1.3.Rubi corpus, compared with master a29f7ec:
The allocation gate passed. The suite passed: 15,309 passed, 0 failed.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura